package com.example.demo.mapper;

import com.example.demo.po.Major;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MajorMap {
    //crud
    void SaveMajor(Major major);

    void DeleteMajor(int id);

    void UpdateMajor(Major major);

    List<Major> GetMajorList();

    List<Major> GetMajorByName(String name);

}
